package com.seata.demo.mapper;

import org.apache.ibatis.annotations.Param;

import com.seata.demo.mapper.base.MyBatisBaseDao;
import com.seata.demo.model.StorageTbl;
import com.seata.demo.common.dto.CommodityDTO;

/**
 * StorageTblMapper继承基类
 */
public interface StorageTblMapper extends MyBatisBaseDao<StorageTbl, Integer> {
    
    CommodityDTO selectCommodity(String commodityCode);

    int deduct(@Param("commodityCode") String commodityCode, @Param("deductCount")Integer deductCount);

}